package com.mall.client.mall;

import java.util.List;

import com.mall.pojo.MallActivity;
import com.mall.query.MallActivityQuery;
import com.mall.query.Page;

public interface MallActivityService {

	List<MallActivity> getMallActivityList(MallActivityQuery mallActivityQuery, Page page);

	/**
	 * 更新
	 * @param mallActivity
	 * @param id
	 * @return
	 */
	int updateMallActivity(MallActivity mallActivity, Long id);
	
	int insertMallActivity(MallActivity mallActivity);
	
	/**
	 * List页面卖家提交的活动
	 * @param mallIds
	 * @return
	 */
	public List<MallActivity> getMallActivityType1List4ListByMallIds(List<Long> mallIds);

	/**
	 * List页面卖家提交的抽奖活动
	 * @param mallIds
	 * @return
	 */
	public List<MallActivity> getMallActivityType2List4ListByMallIds(List<Long> mallIds);

	MallActivity getMallActivityById(Long mallActivityId);
	
	List<MallActivity> getMallActivityListByLevel(Integer level,Integer onlyKey);
}
